package com.wee.cronos.client.place;

 import com.google.web.bindery.event.shared.EventBus;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.proxy.PlaceManagerImpl;
import com.gwtplatform.mvp.client.proxy.PlaceRequest;
import com.gwtplatform.mvp.client.proxy.TokenFormatter;

public class CronosPlaceManager extends PlaceManagerImpl 
{
	private final PlaceRequest defaultPlaceRequest;

	@Inject
	public CronosPlaceManager(EventBus eventBus, TokenFormatter tokenFormatter, @DefaultPlace String defaultToken) 
	{
		super(eventBus, tokenFormatter);
		
		this.defaultPlaceRequest = new PlaceRequest(defaultToken);
	}

	@Override
	public void revealDefaultPlace() 
	{
		super.revealPlace(defaultPlaceRequest);
	}
	
	@Override
	public void revealErrorPlace(String invalidHistoryToken) 
	{
		super.revealErrorPlace(invalidHistoryToken);
	}
}